<template>
    <div>
      <el-date-picker
      @change="handleChange"
      v-model="defaultValue"
      type="datetime"
      placeholder="选择日结束时间"
      default-time="12:00:00"
      style="margin-right:10px;width:200px;">
    </el-date-picker>
    </div>
</template>



<script>
    export default{
        props:['paramsName'],
        data(){
            return{
                defaultValue:''
            }
        },
        methods:{
            handleChange(v){
                this.defaultValue = v
                this.$emit('handleChange',v,this.paramsName)
            },
            rest(){
                this.defaultValue = ''
                this.handleChange('')
            }
        }
    }
</script>   